﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WeChartWorkRobot.Model
{
    public class JiraIssueField
    {
        public string summary { get; set; }

        public JiraIssueType issuetype { get; set; }

        public JiraUser creator { get; set; }

        public JiraUser reporter { get; set; }

        public JiraUser assignee { get; set; }

        public JiraUser customfield_10700 { get; set; }

        public JiraStatus status { get; set; }

        public List<JiraSubTask> subtasks;


        private List<JiraKeyValue> _devlopuser2storypoint;
        public List<JiraKeyValue> devlopuser2storypoint
        {
            get
            {
                if (_devlopuser2storypoint == null)
                {
                    return new List<JiraKeyValue>();
                }
                return _devlopuser2storypoint;
            }
            set
            {
                _devlopuser2storypoint = value;
            }
        }

        private List<JiraKeyValue> _testeruser2storypoint;
        public List<JiraKeyValue> testuser2storypoint
        {
            get
            {
                if (_testeruser2storypoint == null)
                {
                    return new List<JiraKeyValue>();
                }
                return _testeruser2storypoint;
            }
            set
            {
                _testeruser2storypoint = value;
            }
        }

        private double? _storypoint;


        public double? customfield_10101
        {
            get
            {
                if (_storypoint == null)
                {
                    return 0;
                }
                return _storypoint;
            }
            set
            {
                _storypoint = value;
            }
        }
    }
}
